<?php

namespace JLPay\Models\Clearing;

use JLPay\Models\BaseRequest;

/**
 * 结算资金查询请求
 */
class AccBalanceRequest extends BaseRequest
{
    /**
     * API前缀
     */
    public const API_PREFIX = '/fund/settlement';
    
    /**
     * API URI
     */
    public const API_URI = '/account/balance';

    protected ?string $merchNo = null;
    protected ?string $orgNo = null;
    protected ?string $acctType = null;

    /**
     * 设置商户号
     *
     * @param string $merchNo
     * @return self
     */
    public function setMerchNo(string $merchNo): self
    {
        $this->merchNo = $merchNo;
        return $this;
    }

    /**
     * 设置机构号
     *
     * @param string $orgNo
     * @return self
     */
    public function setOrgNo(string $orgNo): self
    {
        $this->orgNo = $orgNo;
        return $this;
    }

    /**
     * 设置账户类型
     *
     * @param string $acctType
     * @return self
     */
    public function setAcctType(string $acctType): self
    {
        $this->acctType = $acctType;
        return $this;
    }

    /**
     * 获取商户号
     *
     * @return string|null
     */
    public function getMerchNo(): ?string
    {
        return $this->merchNo;
    }

    /**
     * 获取机构号
     *
     * @return string|null
     */
    public function getOrgNo(): ?string
    {
        return $this->orgNo;
    }

    /**
     * 获取账户类型
     *
     * @return string|null
     */
    public function getAcctType(): ?string
    {
        return $this->acctType;
    }
} 